/* Startup Template For CCP1 */ // Sample Interrupt Handler void interrupt() { // CCP1 Interrupt if(PIR1.CCP1IF == 1) // if the CCP1 Interrupt flag is set... { - Place Your Code Here - PIR1.CCP1IF = 0; // clear the interrupt flag } } // Sample Main Setup void main() { // Set Interrupt Enable bits PIE1.CCP1IE = 1; // bit 2 CCP1 Interrupt Enable //Set global Interrupt Enable bits INTCON.GIE = 1; // global interrupt enable while(1) // endless loop { - Place Your Code Here - } }